package com.yuan.mall1.service;

import com.lly835.bestpay.enums.BestPayTypeEnum;
import com.lly835.bestpay.model.PayResponse;
import com.sun.xml.internal.ws.api.ha.StickyFeature;
import com.yuan.mall1.pojo.PayInfo;

import java.math.BigDecimal;

public interface IPayService {
    /**
     * 创建/发起支付
     */
    PayResponse create(String orderId, BigDecimal amount, BestPayTypeEnum bestPayTypeEnum);
    //异步通知处理接口
    String  asyncNotify(String notifyData);

    /**
     * 通过订单号查询支付记录
     * @param orderId
     * @return
     */
    PayInfo queryByOrderId(String orderId);
}
